Pay attention to the scroll offset when drawing the box. (#308834, Tom von
authorMatthias Clasen <mclasen@redhat.com>
Mon, 27 Jun 2005 02:07:35 +0000 (02:07 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 27 Jun 2005 02:07:35 +0000 (02:07 +0000)
2005-06-26  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
scroll offset when drawing the box.  (#308834, Tom von
Schwerdtner)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gtk/gtkmenu.c

index 032b6a6df1eca6f0758787f57ce320fc88744c8a..179035e7d5efdc30a99667ccb718f4b69be4734e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-06-26  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
+       scroll offset when drawing the box.  (#308834, Tom von 
+       Schwerdtner)
+
 2005-06-26  Tor Lillqvist  <tml@novell.com>
 
        * gdk/Makefile.am
index 032b6a6df1eca6f0758787f57ce320fc88744c8a..179035e7d5efdc30a99667ccb718f4b69be4734e 100644 (file)
@@ -1,3 +1,9 @@
+2005-06-26  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
+       scroll offset when drawing the box.  (#308834, Tom von 
+       Schwerdtner)
+
 2005-06-26  Tor Lillqvist  <tml@novell.com>
 
        * gdk/Makefile.am
index 032b6a6df1eca6f0758787f57ce320fc88744c8a..179035e7d5efdc30a99667ccb718f4b69be4734e 100644 (file)
@@ -1,3 +1,9 @@
+2005-06-26  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
+       scroll offset when drawing the box.  (#308834, Tom von 
+       Schwerdtner)
+
 2005-06-26  Tor Lillqvist  <tml@novell.com>
 
        * gdk/Makefile.am
index a9c0b4bf4c2f9ddbddd62178c8c5aeea0254b7b0..a1eae149b3473a9c5879ced42fc4a48b16d70126 100644 (file)
@@ -1289,7 +1289,7 @@ gtk_menu_popup (GtkMenu               *menu,
   GtkMenuPrivate *priv;
 
   g_return_if_fail (GTK_IS_MENU (menu));
-  
+
   widget = GTK_WIDGET (menu);
   menu_shell = GTK_MENU_SHELL (menu);
   priv = gtk_menu_get_private (menu);
@@ -2502,7 +2502,8 @@ gtk_menu_paint (GtkWidget      *widget,
                     GTK_STATE_NORMAL,
                     GTK_SHADOW_OUT,
                     NULL, widget, "menu",
-                    -border_x, -border_y, width, height);
+                    - border_x, menu->scroll_offset - border_y, 
+                    width, height);
     }
 }